/*
 * @Author: your name
 * @Date: 2021-04-17 10:16:42
 * @LastEditTime: 2021-04-21 14:10:38
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \智慧医疗项目\app\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)


const routes = [{
  path: '/',
  redirect: '/home'
},
{
  path: '/login',
  name: 'Login',
  component: () => import( /* webpackChunkName: "login" */ '../views/login/login.vue'),
},
{
  path: '/home',
  name: 'Home',
  component: () => import( /* webpackChunkName: "about" */ '../views/home.vue'),
  redirect: '/home/doctor',
  children: [{
    path: 'doctor',
    name: 'Doctor',
    meta: {
      title: '医生管理'
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/pages/doctor/doctor.vue')
  }, {
    path: 'office',
    name: 'Office',
    meta: {
      title: '科室',
    },
    component: () => import( /* webpackChunkName: "office" */ '../views/pages/doctor/office/office.vue'),
  }, {
    path: 'docList',
    name: 'DocList',
    meta: {
      title: '科室北京301医院-主治医师列表',
    },
    component: () => import( /* webpackChunkName: "docList" */ '../views/pages/doctor/office/docList/docList.vue'),
  }, {
    path: 'docDetail',
    name: 'DocDetail',
    meta: {
      title: '主治医师',
    },
    component: () => import( /* webpackChunkName: "docDetail" */ '../views/pages/doctor/office/docList/docDetail.vue'),
  }, {
    path: 'patient',
    name: 'Patient',
    meta: {
      title: '患者管理'
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/pages/patient/patient.vue')
  }, {
    path: 'detail',
    name: 'Detail',
    meta: {
      title: '患者详情'
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/pages/patient/detail.vue')
  }, {
    path: 'audit',
    name: 'Audit',
    meta: {
      title: '审核管理'
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/pages/audit/audit.vue')
  }, {
    path: 'classify',
    name: 'Classify',
    meta: {
      title: '商品分类'
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/pages/production/classify/classify.vue')
  }, {
    path: 'list',
    name: 'List',
    meta: {
      title: '商品列表'
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/pages/production/list/list.vue')
  }, {
    path: 'order',
    name: 'Order',
    meta: {
      title: '商品订单'
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/pages/production/order/order.vue')
  }, {
    path: 'live',
    name: 'Live',
    meta: {
      title: '直播管理'
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/pages/live/live.vue')
  }, {
    path: 'marketing',
    name: 'Marketing',
    meta: {
      title: '营销管理'
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/pages/marketing/marketing.vue')
  }, {
    path: 'kill',
    name: 'Kill',
    meta: {
      title: '限时秒杀'
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/pages/marketing/kill/kill.vue'),
  }, {
    path: 'account',
    name: 'Account',
    meta: {
      title: '账号管理'
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/pages/account/account.vue')
  }]
},
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router